//
//  AnatomyViewController.m
//  NCMM
//
//  Created by John Kline on 10/9/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "FFWViewController.h"
#import "GridView.h"

#define gridStartX 0
#define gridStartY 0 // Move down slightly to account for title

@implementation FFWViewController


// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
	[super viewDidLoad];
	[self setView:[[[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]] autorelease]];
    
    UIImageView *background = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"underwater-18.jpg"]];
    [self.view addSubview:background];
    
    CGRect gridFrame = CGRectMake(gridStartX, gridStartY, 600, 600);
    
    GridView *gameGrid = [[GridView alloc] initWithSize:@"medium" andFrame:gridFrame andDelegate:self];
    [self.view addSubview:gameGrid];
}


- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Overriden to allow any orientation.
    return YES;
}


- (void)didReceiveMemoryWarning {
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc. that aren't in use.
}


- (void)viewDidUnload {
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}


- (void)dealloc {
    [super dealloc];
}

@end
